package com.ruoyi.common.core.config;

public interface CodeGeneratorConfig {

    /**
     * 项目目录名称
     */
    String projectDir = "/youban-common/youban-common-core/";

    /**
     * 输出包名
     */
    String outputPackage = "com.mybatis";

    /**
     * 父包模块名
     */
    String parentModelName = "";

    /**
     * 实体类包名
     */
    String entityPackageName = "pojo.entity";

    /**
     * 数据访问层包名
     */
    String mapperPackageName = "mapper";

    /**
     * 数据访问层XML包名
     */
    String mapperXmlPackageName = "mapper.xml";

    /**
     * 业务逻辑层包名
     */
    String servicePackageName = "service";

    /**
     * 业务逻辑实现层包名
     */
    String serviceImplPackageName = "service.impl";

    /**
     * 界面层包名
     */
    String controllerPackageName = "controller";

    /**
     * 输出根目录绝对路径, 默认当前项目
     */
    String outputDir = System.getProperty("user.dir").concat(projectDir).concat("/src/main/java/");

    /**
     * 输出根目录资源绝对路径, 默认当前项目
     */
    String outputResourcesDir = System.getProperty("user.dir").concat(projectDir).concat("/src/main/resources/");

    String prefix = "youban_";

    String tableName = "youban_dynamic";

    String jdbcUrl = "jdbc:mysql://rm-bp11523j77p4e3951lo.mysql.rds.aliyuncs.com:3306/"+tableName+"?useUnicode=true&characterEncoding=gbk&useSSL=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC";

    String username = "youban_user";

    String password = "youban888!@";

    String driverName = "com.mysql.cj.jdbc.Driver";

    /**
     * 查询所有表
     */
    String tables = "select table_name from information_schema.tables where table_schema='"+tableName+"'";
}
